package com.shj.em.biz.sys.mapper;

import com.shj.em.biz.sys.entity.Cd;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.plugins.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 代码项值 Mapper 接口
 * </p>
 *
 * @author Shen Huang Jian
 * @since 2018-07-04
 */
@Mapper
public interface CdMapper extends BaseMapper<Cd> {
    /**
     * 分页查询
     * @param page 分页信息
     * @return
     */
    List<Cd> queryCdPage(Page<Cd> page, Map<String, Object> params);

    List<Cd> queryCdsByType(String type);

    String getDescrByTypeAndCd(@Param("type") String type, @Param("code") String code);
}
